<admintpl file="header" />
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="javascript:;">卡绑定管理</a></li>
        <li ><a href="{:U('AdminCard/bind')}" target="_self">批量绑定</a></li>
    </ul>
    <form class="well form-search" method="post" action="{:U('AdminCard/bind_list')}">
        ICCID：
        <input type="text" name="s_number" style="width: 200px;" value="{$s_number}" placeholder="请输入ICCID">
        &nbsp;&nbsp;
        <select name="s_type" style="width: 140px;">
            <option value="1">根据卡号精确查找</option>
            <option value="2">根据卡号模糊查找</option>
        </select>
        所属人：
        <select name="s_uid">
            <option value="">全部</option>
            <foreach name="user_list" item="uo">
                <option value="{$uo.id}" <if condition="$uo['id'] == $s_uid">selected</if>>{$uo.user_nickname}</option>
            </foreach>
        </select>
        <input type="submit" class="btn btn-primary" value="搜索" />
    </form>
    <form class="js-ajax-form" action="" method="post">

        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <td>ICCID</td>
                <td>卡号</td>
                <td>所属人</td>
            </tr>
            </thead>
            <foreach name="list" item="vo">
                <tr>
                    <td>{$vo.card_iccid}</td>
                    <td>{$vo.card_number}</td>
                    <td>{$vo.user_nickname}</td>
                </tr>
    </foreach>
        </table>

        <div class="pagination">{$page}</div>
    </form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
<script>
    function refersh_window() {
        var refersh_time = getCookie('refersh_time');
        if (refersh_time == 1) {
            window.location = "{:U('AdminPost/index',$formget)}";
        }
    }

</script>
</body>
</html>